package yunjiao.javatutorials.guava.concurrent.spring;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 配置属性类
 *
 * @author yangyunjiao
 */
@Data
@Component
@ConfigurationProperties(prefix = "app.services")
public class ServiceProperties {
    private int databasePoolSize = 5;
    private long configRefreshInterval = 30;
    private boolean autoStart = true;
}
